 package com.edvard.bean;

import java.io.Serializable;

import com.j256.ormlite.field.DatabaseField;

public class FiancialData implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@DatabaseField(generatedId = true) 
	private Integer _id;
	@DatabaseField
	private Integer first_id;
	@DatabaseField
	private Integer second_id;
	/**
	 * 定义了四种类型
	 * 0 借入
	 * 1 还息
	 * 2 贷出
	 * 3 收息
	 * 具体的参照DataType类
	 */
	@DatabaseField
	private Integer type_id;
	@DatabaseField
	private double money;
	/**
	 * 默认取该科目的默认息率(日息)
	 * 当时当用户改变时，将会用到当前字段
	 */
	@DatabaseField
	private double rate;
	@DatabaseField
	private Integer summery_id;
	@DatabaseField
	private String start_date;
	@DatabaseField
	private String end_date;
	@DatabaseField
	private Integer is_in_history;
	@DatabaseField
	private Integer history_id;
	
	public FiancialData() {
		// TODO Auto-generated constructor stub
	}
	
	public Integer get_id() {
		return _id;
	}

	public void set_id(Integer _id) {
		this._id = _id;
	}

	public Integer getFirst_id() {
		return first_id;
	}

	public void setFirst_id(Integer first_id) {
		this.first_id = first_id;
	}

	public Integer getSecond_id() {
		return second_id;
	}

	public void setSecond_id(Integer second_id) {
		this.second_id = second_id;
	}

	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

	public Integer getType_id() {
		return type_id;
	}

	public void setType_id(Integer type_id) {
		this.type_id = type_id;
	}

	public double getRate() {
		return rate;
	}

	public void setRate(double rate) {
		this.rate = rate;
	}

	public Integer getSummery_id() {
		return summery_id;
	}

	public void setSummery_id(Integer summery_id) {
		this.summery_id = summery_id;
	}

	public String getStart_date() {
		return start_date;
	}

	public void setStart_date(String start_date) {
		this.start_date = start_date;
	}

	public String getEnd_date() {
		return end_date;
	}

	public void setEnd_date(String end_date) {
		this.end_date = end_date;
	}

	public Integer getIs_in_history() {
		return is_in_history;
	}

	public void setIs_in_history(Integer is_in_history) {
		this.is_in_history = is_in_history;
	}

	public Integer getHistory_id() {
		return history_id;
	}

	public void setHistory_id(Integer history_id) {
		this.history_id = history_id;
	}

}
